<?php
 defined('RUN')or die('No access');class View{public static function load($a,$b=array(),$c='default',$d=FALSE){if(!class_exists('Smarty',FALSE))include(SYS_LIBS_PATH.'smarty'.DS.'Smarty.class'.EXT);$e=new Smarty;$e->setTemplateDir(VIEWS_PATH.$c);$e->setCacheDir(VIEWS_PATH.'caches');$e->setCompileDir(VIEWS_PATH.'compiled');if($d){$e->setCaching(Smarty::CACHING_LIFETIME_CURRENT);$e->setCacheLifetime(300);}foreach($b as $f=>$g){$e->assign($f,$g);}header('Content-Type: text/html; charset=utf-8');header("Last-Modified: ".gmdate("D, d M Y H:i:s",time()-86400)." GMT");$e->display($a);}}